package com.wpw.java8demo;

import java.util.Optional;

public class Apple {
	
	

	private Integer weigth;
	
	private String color;
	
	private Optional<Bug> bug;

	public Apple() {
	}
	
	public Apple(Integer weigth) {
		this.weigth = weigth;
	}
	
	public Integer getWeigth() {
		return weigth;
	}
	
	

	public Apple(Integer weigth, String color) {
		super();
		this.weigth = weigth;
		this.color = color;
	}

	public void setWeigth(Integer weigth) {
		this.weigth = weigth;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	@Override
	public String toString() {
		return "Apple [weigth=" + weigth + ", color=" + color + "]";
	}

	public Optional<Bug> getBug() {
		return bug;
	}

	public void setBug(Optional<Bug> bug) {
		this.bug = bug;
	}

}
